package com.imonsoft.common.util;

public class GenerateFlowCode {

	private static final String FLOW_CODE_FORMAT = "XXX"; // 流水号格式


	public static String frontAddZero(String str) {
		for (; str.length() < FLOW_CODE_FORMAT.length();) {
			str = "0" + str;
		}
		return str;
	}
    public static void main(String[] args){
        System.out.println(frontAddZero("2"));
    }
}